import type React from "react";
import { Suspense, type JSX } from "react";

export default function LazyLoad(Component: React.LazyExoticComponent<() => JSX.Element>): React.ReactNode {
    return (
        <Suspense fallback='loading...'>
            <Component />
        </Suspense>
    )
}